{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {
    "vscode": {
     "languageId": "raw"
    }
   },
   "source": [
    "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/klavis-ai/klavis/blob/main/examples/crewai/Salesforce_Gmail_CrewAI_Integration.ipynb)\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "vscode": {
     "languageId": "raw"
    }
   },
   "source": [
    "# CrewAI with Klavis Salesforce + Gmail MCP Server\n",
    "\n",
    "This tutorial demonstrates how to create a powerful AI crew that manages Salesforce opportunities and sends follow-up emails through Gmail using CrewAI with Klavis MCP servers.\n",
    "\n",
    "## Use Case\n",
    "- **Salesforce Agent**: Finds opportunities with pending next steps\n",
    "- **Email Agent**: Drafts professional follow-up emails based on Salesforce data\n",
    "- **Workflow**: Automated opportunity management and email communication\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "vscode": {
     "languageId": "raw"
    }
   },
   "source": [
    "## Prerequisites\n",
    "\n",
    "- **OpenAI API key** - Get at [openai.com](https://openai.com/)\n",
    "- **Klavis API key** - Get at [klavis.ai](https://klavis.ai/)\n",
    "- **Salesforce Account**\n",
    "- **Gmail Account**\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Note: you may need to restart the kernel to use updated packages.\n"
     ]
    }
   ],
   "source": [
    "# Install the required packages\n",
    "%pip install -qU crewai 'crewai-tools[mcp]' klavis"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "\n",
    "# Set environment variables\n",
    "os.environ[\"OPENAI_API_KEY\"] = \"YOUR_OPENAI_API_KEY\"  # Replace with your actual OpenAI API key\n",
    "os.environ[\"KLAVIS_API_KEY\"] = \"YOUR_KLAVIS_API_KEY\"  # Replace with your actual Klavis API key\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "vscode": {
     "languageId": "raw"
    }
   },
   "source": [
    "## Step 1: Initialize Klavis Client\n",
    "\n",
    "First, let's set up the Klavis client to create our MCP server instances.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\u2705 Klavis client initialized successfully\n"
     ]
    }
   ],
   "source": [
    "from klavis import Klavis\n",
    "\n",
    "klavis_client = Klavis(api_key=os.getenv(\"KLAVIS_API_KEY\"))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "vscode": {
     "languageId": "raw"
    }
   },
   "source": [
    "## Step 2: Create Salesforce MCP Server\n",
    "\n",
    "Create a Salesforce MCP server instance and complete OAuth authentication.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\ud83d\udd10 Opening OAuth authorization for Salesforce...\n"
     ]
    }
   ],
   "source": [
    "import webbrowser\n",
    "from klavis.types import McpServerName\n",
    "\n",
    "# Create Salesforce MCP Server instance\n",
    "salesforce_mcp_instance = klavis_client.mcp_server.create_server_instance(\n",
    "    server_name=McpServerName.SALESFORCE,\n",
    "    user_id=\"1234\", \n",
    ")\n",
    "# Open OAuth URL in browser\n",
    "webbrowser.open(salesforce_mcp_instance.oauth_url)\n",
    "\n",
    "print(f\"\ud83d\udd10 Opening OAuth authorization for Salesforce...\")\n",
    "# print(f\"\ud83d\udcf1 If not redirected automatically, open: {salesforce_mcp_instance.oauth_url}\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "vscode": {
     "languageId": "raw"
    }
   },
   "source": [
    "## Step 3: Create Gmail MCP Server\n",
    "\n",
    "Create a Gmail MCP server instance and complete OAuth authentication.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Create Gmail MCP Server instance\n",
    "gmail_mcp_instance = klavis_client.mcp_server.create_server_instance(\n",
    "    server_name=McpServerName.GMAIL,\n",
    "    user_id=\"1234\",\n",
    ")\n",
    "# Open OAuth URL in browser\n",
    "webbrowser.open(gmail_mcp_instance.oauth_url)\n",
    "\n",
    "# print(f\"\ud83d\udd17 Gmail MCP server created at: {gmail_mcp_instance.server_url}\")\n",
    "# print(f\"\ud83d\udd10 Opening OAuth authorization for Gmail...\")\n",
    "# print(f\"\ud83d\udcf1 If not redirected automatically, open: {gmail_mcp_instance.oauth_url}\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "vscode": {
     "languageId": "raw"
    }
   },
   "source": [
    "## Step 4: Configure MCP Server Adapters\n",
    "\n",
    "Set up the MCP server adapters for CrewAI integration.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/Users/zihaolin/src/klavis/.venv/lib/python3.13/site-packages/pydantic/fields.py:1093: PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 'items', 'anyOf', 'enum', 'properties'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.11/migration/\n",
      "  warn(\n"
     ]
    }
   ],
   "source": [
    "from crewai_tools import MCPServerAdapter\n",
    "# Configure MCP server adapters\n",
    "salesforce_mcp_server = MCPServerAdapter({\n",
    "    \"url\": salesforce_mcp_instance.server_url,\n",
    "    \"transport\": \"streamable-http\"\n",
    "})\n",
    "\n",
    "gmail_mcp_server = MCPServerAdapter({\n",
    "    \"url\": gmail_mcp_instance.server_url,\n",
    "    \"transport\": \"streamable-http\"\n",
    "})\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "vscode": {
     "languageId": "raw"
    }
   },
   "source": [
    "## Step 5: Create CrewAI Agents and Tasks\n",
    "\n",
    "Define specialized agents for Salesforce opportunity management and email communication. Create specific tasks for opportunity analysis and email drafting."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [],
   "source": [
    "from crewai import Agent, Task, Crew, Process\n",
    "# Create Salesforce Opportunity Analyst Agent\n",
    "salesforce_agent = Agent(\n",
    "    role=\"Salesforce Opportunity Analyst\",\n",
    "    goal=\"Find opportunities with pending next steps and extract relevant contact information\",\n",
    "    backstory=\"You are an expert at analyzing Salesforce data to identify opportunities that need follow-up actions. You excel at extracting opportunity details, next step information, and contact data for effective sales management.\",\n",
    "    tools=salesforce_mcp_server.tools,    \n",
    "    verbose=False,\n",
    ")\n",
    "\n",
    "# Create Email Communication Specialist Agent\n",
    "email_agent = Agent(\n",
    "    role=\"Email Communication Specialist\",\n",
    "    goal=\"Draft professional follow-up emails based on Salesforce opportunity next steps\",\n",
    "    backstory=\"You are an expert at crafting complete, professional follow-up emails without placeholder content. You always write proper signatures and complete email content based on Salesforce opportunity data and next step requirements.\",\n",
    "    tools=gmail_mcp_server.tools,    \n",
    "    verbose=False,\n",
    ")\n",
    "\n",
    "# Define Salesforce Analysis Task\n",
    "salesforce_task = Task(\n",
    "    description=\"Find CrewAI opportunitity with next steps. Extract opportunity name, next step details, and contact emails. Focus on opportunities that require immediate follow-up actions.\",\n",
    "    expected_output=\"Comprehensive list of opportunities with next steps and contact information, including opportunity names, next step descriptions, contact emails, and priority levels\",\n",
    "    agent=salesforce_agent\n",
    ")\n",
    "\n",
    "# Define Email Drafting Task\n",
    "email_task = Task(\n",
    "    description=\"Based on the Salesforce opportunities analysis, draft professional follow-up emails for each opportunity. Include opportunity context, clear next actions, and professional tone. Ensure emails are complete and ready for sending.\",\n",
    "    expected_output=\"Draft emails with complete content ready for review and sending, including subject lines, professional greetings, opportunity context, next steps, and proper signatures\",\n",
    "    agent=email_agent,\n",
    "    context=[salesforce_task]  # This task depends on the salesforce_task output\n",
    ")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "vscode": {
     "languageId": "raw"
    }
   },
   "source": [
    "## Step 6: Execute the Crew\n",
    "\n",
    "Create and run the multi-service crew to analyze Salesforce opportunities and draft follow-up emails.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008080; text-decoration-color: #008080\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Crew Execution Started \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>                                                                                                                 <span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>\n",
       "<span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>  <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">Crew Execution Started</span>                                                                                         <span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>\n",
       "<span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Name: </span><span style=\"color: #008080; text-decoration-color: #008080\">crew</span>                                                                                                     <span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>\n",
       "<span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">ID: </span><span style=\"color: #008080; text-decoration-color: #008080\">6f02408e-8092-49b9-b1ed-fdce83e0a944</span>                                                                       <span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>\n",
       "<span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Tool Args: </span>                                                                                                    <span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>\n",
       "<span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>                                                                                                                 <span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>\n",
       "<span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>                                                                                                                 <span style=\"color: #008080; text-decoration-color: #008080\">\u2502</span>\n",
       "<span style=\"color: #008080; text-decoration-color: #008080\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[36m\u256d\u2500\u001b[0m\u001b[36m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[36m Crew Execution Started \u001b[0m\u001b[36m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[36m\u2500\u256e\u001b[0m\n",
       "\u001b[36m\u2502\u001b[0m                                                                                                                 \u001b[36m\u2502\u001b[0m\n",
       "\u001b[36m\u2502\u001b[0m  \u001b[1;36mCrew Execution Started\u001b[0m                                                                                         \u001b[36m\u2502\u001b[0m\n",
       "\u001b[36m\u2502\u001b[0m  \u001b[37mName: \u001b[0m\u001b[36mcrew\u001b[0m                                                                                                     \u001b[36m\u2502\u001b[0m\n",
       "\u001b[36m\u2502\u001b[0m  \u001b[37mID: \u001b[0m\u001b[36m6f02408e-8092-49b9-b1ed-fdce83e0a944\u001b[0m                                                                       \u001b[36m\u2502\u001b[0m\n",
       "\u001b[36m\u2502\u001b[0m  \u001b[37mTool Args: \u001b[0m                                                                                                    \u001b[36m\u2502\u001b[0m\n",
       "\u001b[36m\u2502\u001b[0m                                                                                                                 \u001b[36m\u2502\u001b[0m\n",
       "\u001b[36m\u2502\u001b[0m                                                                                                                 \u001b[36m\u2502\u001b[0m\n",
       "\u001b[36m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #800080; text-decoration-color: #800080\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \ud83e\udd16 Agent Started \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Agent: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00; font-weight: bold\">Salesforce Opportunity Analyst</span>                                                                          <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Task: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00\">Find CrewAI opportunitity with next steps. Extract opportunity name, next step details, and contact </span>     <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">emails. Focus on opportunities that require immediate follow-up actions.</span>                                       <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[35m\u256d\u2500\u001b[0m\u001b[35m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[35m \ud83e\udd16 Agent Started \u001b[0m\u001b[35m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[35m\u2500\u256e\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[37mAgent: \u001b[0m\u001b[1;92mSalesforce Opportunity Analyst\u001b[0m                                                                          \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[37mTask: \u001b[0m\u001b[92mFind CrewAI opportunitity with next steps. Extract opportunity name, next step details, and contact \u001b[0m     \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[92memails. Focus on opportunities that require immediate follow-up actions.\u001b[0m                                       \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">/Users/zihaolin/src/klavis/.venv/lib/python3.13/site-packages/rich/live.py:231: UserWarning: install \"ipywidgets\" \n",
       "for Jupyter support\n",
       "  warnings.warn('install \"ipywidgets\" for Jupyter support')\n",
       "</pre>\n"
      ],
      "text/plain": [
       "/Users/zihaolin/src/klavis/.venv/lib/python3.13/site-packages/rich/live.py:231: UserWarning: install \"ipywidgets\" \n",
       "for Jupyter support\n",
       "  warnings.warn('install \"ipywidgets\" for Jupyter support')\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #800080; text-decoration-color: #800080\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \ud83d\udd27 Agent Tool Execution \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Agent: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00; font-weight: bold\">Salesforce Opportunity Analyst</span>                                                                          <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Thought: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00\">Action: salesforce_get_opportunities</span>                                                                  <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Using Tool: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00; font-weight: bold\">salesforce_get_opportunities</span>                                                                       <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[35m\u256d\u2500\u001b[0m\u001b[35m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[35m \ud83d\udd27 Agent Tool Execution \u001b[0m\u001b[35m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[35m\u2500\u256e\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[37mAgent: \u001b[0m\u001b[1;92mSalesforce Opportunity Analyst\u001b[0m                                                                          \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[37mThought: \u001b[0m\u001b[92mAction: salesforce_get_opportunities\u001b[0m                                                                  \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[37mUsing Tool: \u001b[0m\u001b[1;92msalesforce_get_opportunities\u001b[0m                                                                       \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000080; text-decoration-color: #000080\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Tool Input \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>                                                                                                                 <span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>\n",
       "<span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>  <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #ffffff\">\"{\\\"name_contains\\\": \\\"CrewAI\\\", \\\"fields\\\": [\\\"Name\\\", \\\"NextStep\\\", \\\"AccountId\\\"]}\"</span>                         <span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>\n",
       "<span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>                                                                                                                 <span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>\n",
       "<span style=\"color: #000080; text-decoration-color: #000080\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[34m\u256d\u2500\u001b[0m\u001b[34m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[34m Tool Input \u001b[0m\u001b[34m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[34m\u2500\u256e\u001b[0m\n",
       "\u001b[34m\u2502\u001b[0m                                                                                                                 \u001b[34m\u2502\u001b[0m\n",
       "\u001b[34m\u2502\u001b[0m  \u001b[38;2;230;219;116;49m\"{\\\"name_contains\\\": \\\"CrewAI\\\", \\\"fields\\\": [\\\"Name\\\", \\\"NextStep\\\", \\\"AccountId\\\"]}\"\u001b[0m                         \u001b[34m\u2502\u001b[0m\n",
       "\u001b[34m\u2502\u001b[0m                                                                                                                 \u001b[34m\u2502\u001b[0m\n",
       "\u001b[34m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008000; text-decoration-color: #008000\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Tool Output \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">{</span>                                                                                                              <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">  \"totalSize\": 1,</span>                                                                                              <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">  \"done\": true,</span>                                                                                                <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">  \"records\": [</span>                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">    {</span>                                                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">      \"attributes\": {</span>                                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">        \"type\": \"Opportunity\",</span>                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">        \"url\": \"/services/data/v59.0/sobjects/Opportunity/006fK000005jXTFQA2\"</span>                                  <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">      },</span>                                                                                                       <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">      \"Name\": \"CrewAI &lt;&gt; Klavis\",</span>                                                                              <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">      \"NextStep\": \"schedule a meeting on 06/30 9AM PST\",</span>                                                       <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">      \"AccountId\": \"001fK00000IBPlXQAX\"</span>                                                                        <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">    }</span>                                                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">  ]</span>                                                                                                            <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">}</span>                                                                                                              <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[32m\u256d\u2500\u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m Tool Output \u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m\u2500\u256e\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m{\u001b[0m                                                                                                              \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m  \"totalSize\": 1,\u001b[0m                                                                                              \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m  \"done\": true,\u001b[0m                                                                                                \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m  \"records\": [\u001b[0m                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m    {\u001b[0m                                                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m      \"attributes\": {\u001b[0m                                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m        \"type\": \"Opportunity\",\u001b[0m                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m        \"url\": \"/services/data/v59.0/sobjects/Opportunity/006fK000005jXTFQA2\"\u001b[0m                                  \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m      },\u001b[0m                                                                                                       \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m      \"Name\": \"CrewAI <> Klavis\",\u001b[0m                                                                              \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m      \"NextStep\": \"schedule a meeting on 06/30 9AM PST\",\u001b[0m                                                       \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m      \"AccountId\": \"001fK00000IBPlXQAX\"\u001b[0m                                                                        \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m    }\u001b[0m                                                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m  ]\u001b[0m                                                                                                            \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m}\u001b[0m                                                                                                              \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">/Users/zihaolin/src/klavis/.venv/lib/python3.13/site-packages/rich/live.py:231: UserWarning: install \"ipywidgets\" \n",
       "for Jupyter support\n",
       "  warnings.warn('install \"ipywidgets\" for Jupyter support')\n",
       "</pre>\n"
      ],
      "text/plain": [
       "/Users/zihaolin/src/klavis/.venv/lib/python3.13/site-packages/rich/live.py:231: UserWarning: install \"ipywidgets\" \n",
       "for Jupyter support\n",
       "  warnings.warn('install \"ipywidgets\" for Jupyter support')\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #800080; text-decoration-color: #800080\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \ud83d\udd27 Agent Tool Execution \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Agent: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00; font-weight: bold\">Salesforce Opportunity Analyst</span>                                                                          <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Thought: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00\">Action: salesforce_get_contacts</span>                                                                       <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Using Tool: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00; font-weight: bold\">salesforce_get_contacts</span>                                                                            <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[35m\u256d\u2500\u001b[0m\u001b[35m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[35m \ud83d\udd27 Agent Tool Execution \u001b[0m\u001b[35m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[35m\u2500\u256e\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[37mAgent: \u001b[0m\u001b[1;92mSalesforce Opportunity Analyst\u001b[0m                                                                          \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[37mThought: \u001b[0m\u001b[92mAction: salesforce_get_contacts\u001b[0m                                                                       \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[37mUsing Tool: \u001b[0m\u001b[1;92msalesforce_get_contacts\u001b[0m                                                                            \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000080; text-decoration-color: #000080\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Tool Input \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>                                                                                                                 <span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>\n",
       "<span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>  <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #ffffff\">\"{\\\"account_id\\\": \\\"001fK00000IBPlXQAX\\\", \\\"fields\\\": [\\\"Email\\\"], \\\"limit\\\": 50}\"</span>                             <span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>\n",
       "<span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>                                                                                                                 <span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>\n",
       "<span style=\"color: #000080; text-decoration-color: #000080\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[34m\u256d\u2500\u001b[0m\u001b[34m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[34m Tool Input \u001b[0m\u001b[34m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[34m\u2500\u256e\u001b[0m\n",
       "\u001b[34m\u2502\u001b[0m                                                                                                                 \u001b[34m\u2502\u001b[0m\n",
       "\u001b[34m\u2502\u001b[0m  \u001b[38;2;230;219;116;49m\"{\\\"account_id\\\": \\\"001fK00000IBPlXQAX\\\", \\\"fields\\\": [\\\"Email\\\"], \\\"limit\\\": 50}\"\u001b[0m                             \u001b[34m\u2502\u001b[0m\n",
       "\u001b[34m\u2502\u001b[0m                                                                                                                 \u001b[34m\u2502\u001b[0m\n",
       "\u001b[34m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008000; text-decoration-color: #008000\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Tool Output \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">{</span>                                                                                                              <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">  \"totalSize\": 1,</span>                                                                                              <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">  \"done\": true,</span>                                                                                                <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">  \"records\": [</span>                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">    {</span>                                                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">      \"attributes\": {</span>                                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">        \"type\": \"Contact\",</span>                                                                                     <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">        \"url\": \"/services/data/v59.0/sobjects/Contact/003fK000009uHNdQAM\"</span>                                      <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">      },</span>                                                                                                       <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">      \"Email\": \"joaomdmoura@crewai.com\"</span>                                                                        <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">    }</span>                                                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">  ]</span>                                                                                                            <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">}</span>                                                                                                              <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[32m\u256d\u2500\u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m Tool Output \u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m\u2500\u256e\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m{\u001b[0m                                                                                                              \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m  \"totalSize\": 1,\u001b[0m                                                                                              \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m  \"done\": true,\u001b[0m                                                                                                \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m  \"records\": [\u001b[0m                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m    {\u001b[0m                                                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m      \"attributes\": {\u001b[0m                                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m        \"type\": \"Contact\",\u001b[0m                                                                                     \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m        \"url\": \"/services/data/v59.0/sobjects/Contact/003fK000009uHNdQAM\"\u001b[0m                                      \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m      },\u001b[0m                                                                                                       \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m      \"Email\": \"joaomdmoura@crewai.com\"\u001b[0m                                                                        \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m    }\u001b[0m                                                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m  ]\u001b[0m                                                                                                            \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m}\u001b[0m                                                                                                              \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008000; text-decoration-color: #008000\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \u2705 Agent Final Answer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Agent: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00; font-weight: bold\">Salesforce Opportunity Analyst</span>                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Final Answer:</span>                                                                                                  <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">{</span>                                                                                                              <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">  \"Opportunities\": [</span>                                                                                           <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">    {</span>                                                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">      \"OpportunityName\": \"CrewAI &lt;&gt; Klavis\",</span>                                                                   <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">      \"NextStep\": \"schedule a meeting on 06/30 9AM PST\",</span>                                                       <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">      \"ContactEmail\": \"joaomdmoura@crewai.com\"</span>                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">    }</span>                                                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">  ]</span>                                                                                                            <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">}</span>                                                                                                              <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[32m\u256d\u2500\u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m \u2705 Agent Final Answer \u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m\u2500\u256e\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mAgent: \u001b[0m\u001b[1;92mSalesforce Opportunity Analyst\u001b[0m                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mFinal Answer:\u001b[0m                                                                                                  \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m{\u001b[0m                                                                                                              \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m  \"Opportunities\": [\u001b[0m                                                                                           \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m    {\u001b[0m                                                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m      \"OpportunityName\": \"CrewAI <> Klavis\",\u001b[0m                                                                   \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m      \"NextStep\": \"schedule a meeting on 06/30 9AM PST\",\u001b[0m                                                       \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m      \"ContactEmail\": \"joaomdmoura@crewai.com\"\u001b[0m                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m    }\u001b[0m                                                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m  ]\u001b[0m                                                                                                            \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m}\u001b[0m                                                                                                              \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008000; text-decoration-color: #008000\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Task Completion \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">Task Completed</span>                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Name: </span><span style=\"color: #008000; text-decoration-color: #008000\">3fd10914-4c4a-4da2-9375-d18a069ecc55</span>                                                                     <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Agent: </span><span style=\"color: #008000; text-decoration-color: #008000\">Salesforce Opportunity Analyst</span>                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Tool Args: </span>                                                                                                    <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[32m\u256d\u2500\u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m Task Completion \u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m\u2500\u256e\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[1;32mTask Completed\u001b[0m                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mName: \u001b[0m\u001b[32m3fd10914-4c4a-4da2-9375-d18a069ecc55\u001b[0m                                                                     \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mAgent: \u001b[0m\u001b[32mSalesforce Opportunity Analyst\u001b[0m                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mTool Args: \u001b[0m                                                                                                    \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #800080; text-decoration-color: #800080\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \ud83e\udd16 Agent Started \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Agent: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00; font-weight: bold\">Email Communication Specialist</span>                                                                          <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Task: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00\">Based on the Salesforce opportunities analysis, draft professional follow-up emails for each </span>            <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">opportunity. Include opportunity context, clear next actions, and professional tone. Ensure emails are </span>        <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">complete and ready for sending.</span>                                                                                <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[35m\u256d\u2500\u001b[0m\u001b[35m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[35m \ud83e\udd16 Agent Started \u001b[0m\u001b[35m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[35m\u2500\u256e\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[37mAgent: \u001b[0m\u001b[1;92mEmail Communication Specialist\u001b[0m                                                                          \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[37mTask: \u001b[0m\u001b[92mBased on the Salesforce opportunities analysis, draft professional follow-up emails for each \u001b[0m            \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[92mopportunity. Include opportunity context, clear next actions, and professional tone. Ensure emails are \u001b[0m        \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[92mcomplete and ready for sending.\u001b[0m                                                                                \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">/Users/zihaolin/src/klavis/.venv/lib/python3.13/site-packages/rich/live.py:231: UserWarning: install \"ipywidgets\" \n",
       "for Jupyter support\n",
       "  warnings.warn('install \"ipywidgets\" for Jupyter support')\n",
       "</pre>\n"
      ],
      "text/plain": [
       "/Users/zihaolin/src/klavis/.venv/lib/python3.13/site-packages/rich/live.py:231: UserWarning: install \"ipywidgets\" \n",
       "for Jupyter support\n",
       "  warnings.warn('install \"ipywidgets\" for Jupyter support')\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #800080; text-decoration-color: #800080\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \ud83d\udd27 Agent Tool Execution \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Agent: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00; font-weight: bold\">Email Communication Specialist</span>                                                                          <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Thought: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00\">I need to draft a professional follow-up email for the opportunity \"CrewAI &lt;&gt; Klavis\" that includes </span>  <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">the opportunity context, the next step which is scheduling a meeting, and ensure it has a proper greeting, </span>    <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">subject line, and signature.</span>                                                                                   <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Using Tool: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00; font-weight: bold\">draft_email</span>                                                                                        <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>                                                                                                                 <span style=\"color: #800080; text-decoration-color: #800080\">\u2502</span>\n",
       "<span style=\"color: #800080; text-decoration-color: #800080\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[35m\u256d\u2500\u001b[0m\u001b[35m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[35m \ud83d\udd27 Agent Tool Execution \u001b[0m\u001b[35m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[35m\u2500\u256e\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[37mAgent: \u001b[0m\u001b[1;92mEmail Communication Specialist\u001b[0m                                                                          \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[37mThought: \u001b[0m\u001b[92mI need to draft a professional follow-up email for the opportunity \"CrewAI <> Klavis\" that includes \u001b[0m  \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[92mthe opportunity context, the next step which is scheduling a meeting, and ensure it has a proper greeting, \u001b[0m    \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[92msubject line, and signature.\u001b[0m                                                                                   \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m  \u001b[37mUsing Tool: \u001b[0m\u001b[1;92mdraft_email\u001b[0m                                                                                        \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2502\u001b[0m                                                                                                                 \u001b[35m\u2502\u001b[0m\n",
       "\u001b[35m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000080; text-decoration-color: #000080\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Tool Input \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>                                                                                                                 <span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>\n",
       "<span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>  <span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #ffffff\">\"{\\\"to\\\": [\\\"joaomdmoura@crewai.com\\\"], \\\"subject\\\": \\\"Follow-Up: Meeting Scheduling for CrewAI &lt;&gt; Klavis Opp</span>  <span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>\n",
       "<span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>                                                                                                                 <span style=\"color: #000080; text-decoration-color: #000080\">\u2502</span>\n",
       "<span style=\"color: #000080; text-decoration-color: #000080\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[34m\u256d\u2500\u001b[0m\u001b[34m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[34m Tool Input \u001b[0m\u001b[34m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[34m\u2500\u256e\u001b[0m\n",
       "\u001b[34m\u2502\u001b[0m                                                                                                                 \u001b[34m\u2502\u001b[0m\n",
       "\u001b[34m\u2502\u001b[0m  \u001b[38;2;230;219;116;49m\"{\\\"to\\\": [\\\"joaomdmoura@crewai.com\\\"], \\\"subject\\\": \\\"Follow-Up: Meeting Scheduling for CrewAI <> Klavis Opp\u001b[0m  \u001b[34m\u2502\u001b[0m\n",
       "\u001b[34m\u2502\u001b[0m                                                                                                                 \u001b[34m\u2502\u001b[0m\n",
       "\u001b[34m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008000; text-decoration-color: #008000\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Tool Output \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">Email draft created successfully with ID: r-6581095388079430028</span>                                                <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[32m\u256d\u2500\u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m Tool Output \u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m\u2500\u256e\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92mEmail draft created successfully with ID: r-6581095388079430028\u001b[0m                                                \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008000; text-decoration-color: #008000\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \u2705 Agent Final Answer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Agent: </span><span style=\"color: #00ff00; text-decoration-color: #00ff00; font-weight: bold\">Email Communication Specialist</span>                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Final Answer:</span>                                                                                                  <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">Subject: Follow-Up: Meeting Scheduling for CrewAI &lt;&gt; Klavis Opportunity</span>                                        <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">Dear Jo\u00e3o Moura,</span>                                                                                               <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">I hope this message finds you well. I am following up regarding our ongoing collaboration on the CrewAI &lt;&gt; </span>    <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">Klavis opportunity. I would like to schedule a meeting to discuss the next steps and further align our </span>        <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">efforts.</span>                                                                                                       <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">Could we schedule the meeting for June 30th at 9 AM PST? Please let me know if this time works for you or if </span>  <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">there are any other slots that you would prefer.</span>                                                               <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">Looking forward to your reply.</span>                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">Best regards,</span>                                                                                                  <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">[Your Name]  </span>                                                                                                  <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">[Your Position]  </span>                                                                                              <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">[Your Company]  </span>                                                                                               <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">[Your Phone Number]  </span>                                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #00ff00; text-decoration-color: #00ff00\">[Your Email Address]</span>                                                                                           <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[32m\u256d\u2500\u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m \u2705 Agent Final Answer \u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m\u2500\u256e\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mAgent: \u001b[0m\u001b[1;92mEmail Communication Specialist\u001b[0m                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mFinal Answer:\u001b[0m                                                                                                  \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92mSubject: Follow-Up: Meeting Scheduling for CrewAI <> Klavis Opportunity\u001b[0m                                        \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92mDear Jo\u00e3o Moura,\u001b[0m                                                                                               \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92mI hope this message finds you well. I am following up regarding our ongoing collaboration on the CrewAI <> \u001b[0m    \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92mKlavis opportunity. I would like to schedule a meeting to discuss the next steps and further align our \u001b[0m        \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92mefforts.\u001b[0m                                                                                                       \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92mCould we schedule the meeting for June 30th at 9 AM PST? Please let me know if this time works for you or if \u001b[0m  \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92mthere are any other slots that you would prefer.\u001b[0m                                                               \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92mLooking forward to your reply.\u001b[0m                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92mBest regards,\u001b[0m                                                                                                  \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m[Your Name]  \u001b[0m                                                                                                  \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m[Your Position]  \u001b[0m                                                                                              \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m[Your Company]  \u001b[0m                                                                                               \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m[Your Phone Number]  \u001b[0m                                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[92m[Your Email Address]\u001b[0m                                                                                           \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008000; text-decoration-color: #008000\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Task Completion \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">Task Completed</span>                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Name: </span><span style=\"color: #008000; text-decoration-color: #008000\">f80c6d70-1715-4a60-ada0-2f7726d6b727</span>                                                                     <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Agent: </span><span style=\"color: #008000; text-decoration-color: #008000\">Email Communication Specialist</span>                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Tool Args: </span>                                                                                                    <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[32m\u256d\u2500\u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m Task Completion \u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m\u2500\u256e\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[1;32mTask Completed\u001b[0m                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mName: \u001b[0m\u001b[32mf80c6d70-1715-4a60-ada0-2f7726d6b727\u001b[0m                                                                     \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mAgent: \u001b[0m\u001b[32mEmail Communication Specialist\u001b[0m                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mTool Args: \u001b[0m                                                                                                    \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008000; text-decoration-color: #008000\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Crew Completion \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">Crew Execution Completed</span>                                                                                       <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Name: </span><span style=\"color: #008000; text-decoration-color: #008000\">crew</span>                                                                                                     <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">ID: </span><span style=\"color: #008000; text-decoration-color: #008000\">6f02408e-8092-49b9-b1ed-fdce83e0a944</span>                                                                       <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Tool Args: </span>                                                                                                    <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Final Output: Subject: Follow-Up: Meeting Scheduling for CrewAI &lt;&gt; Klavis Opportunity</span>                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Dear Jo\u00e3o Moura,</span>                                                                                               <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">I hope this message finds you well. I am following up regarding our ongoing collaboration on the CrewAI &lt;&gt; </span>    <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Klavis opportunity. I would like to schedule a meeting to discuss the next steps and further align our </span>        <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">efforts.</span>                                                                                                       <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Could we schedule the meeting for June 30th at 9 AM PST? Please let me know if this time works for you or if </span>  <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">there are any other slots that you would prefer.</span>                                                               <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Looking forward to your reply.</span>                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Best regards,</span>                                                                                                  <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">[Your Name]  </span>                                                                                                  <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">[Your Position]  </span>                                                                                              <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">[Your Company]  </span>                                                                                               <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">[Your Phone Number]  </span>                                                                                          <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>  <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">[Your Email Address]</span>                                                                                           <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>                                                                                                                 <span style=\"color: #008000; text-decoration-color: #008000\">\u2502</span>\n",
       "<span style=\"color: #008000; text-decoration-color: #008000\">\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001b[32m\u256d\u2500\u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m Crew Completion \u001b[0m\u001b[32m\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u001b[0m\u001b[32m\u2500\u256e\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[1;32mCrew Execution Completed\u001b[0m                                                                                       \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mName: \u001b[0m\u001b[32mcrew\u001b[0m                                                                                                     \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mID: \u001b[0m\u001b[32m6f02408e-8092-49b9-b1ed-fdce83e0a944\u001b[0m                                                                       \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mTool Args: \u001b[0m                                                                                                    \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mFinal Output: Subject: Follow-Up: Meeting Scheduling for CrewAI <> Klavis Opportunity\u001b[0m                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mDear Jo\u00e3o Moura,\u001b[0m                                                                                               \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mI hope this message finds you well. I am following up regarding our ongoing collaboration on the CrewAI <> \u001b[0m    \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mKlavis opportunity. I would like to schedule a meeting to discuss the next steps and further align our \u001b[0m        \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mefforts.\u001b[0m                                                                                                       \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mCould we schedule the meeting for June 30th at 9 AM PST? Please let me know if this time works for you or if \u001b[0m  \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mthere are any other slots that you would prefer.\u001b[0m                                                               \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mLooking forward to your reply.\u001b[0m                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37mBest regards,\u001b[0m                                                                                                  \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37m[Your Name]  \u001b[0m                                                                                                  \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37m[Your Position]  \u001b[0m                                                                                              \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37m[Your Company]  \u001b[0m                                                                                               \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37m[Your Phone Number]  \u001b[0m                                                                                          \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m  \u001b[37m[Your Email Address]\u001b[0m                                                                                           \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2502\u001b[0m                                                                                                                 \u001b[32m\u2502\u001b[0m\n",
       "\u001b[32m\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\u001b[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Resources cleaned up successfully\n"
     ]
    }
   ],
   "source": [
    "try:\n",
    "    # Create the crew\n",
    "    salesforce_gmail_crew = Crew(\n",
    "        agents=[salesforce_agent, email_agent],\n",
    "        tasks=[salesforce_task, email_task],\n",
    "        process=Process.sequential,\n",
    "        verbose=True,  # Set to False to reduce output\n",
    "    )\n",
    "    # Execute the crew\n",
    "    salesforce_gmail_crew.kickoff()\n",
    "    \n",
    "except Exception as e:\n",
    "    print(f\"\u274c Error during crew execution: {e}\")\n",
    "    \n",
    "finally:\n",
    "    # Clean up resources\n",
    "    salesforce_mcp_server.stop()\n",
    "    gmail_mcp_server.stop()\n",
    "    print(\"Resources cleaned up successfully\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "vscode": {
     "languageId": "raw"
    }
   },
   "source": [
    "## Summary\n",
    "\n",
    "This notebook demonstrated how to create a powerful Salesforce + Gmail integration using CrewAI with Klavis MCP servers.\n",
    "\n",
    "### \ud83c\udfaf **What We Accomplished:**\n",
    "\n",
    "1. **Multi-Service Integration**: Connected Salesforce and Gmail through MCP servers\n",
    "2. **Specialized Agents**: Created focused agents for opportunity analysis and email communication\n",
    "3. **Sequential Workflow**: Implemented a workflow where Salesforce analysis feeds into email drafting\n",
    "4. **OAuth Authentication**: Handled secure authentication for both services\n",
    "5. **Professional Output**: Generated actionable insights and ready-to-send emails\n",
    "\n",
    "### \ud83c\udf93 **Next Steps:**\n",
    "- Customize agent personalities and instructions for your use case\n",
    "- Add more MCP servers for comprehensive workflow automation\n",
    "- Implement scheduling and monitoring for production deployment\n",
    "- Explore advanced CrewAI features like memory and planning\n",
    "\n",
    "**Happy building!** \ud83d\ude80\ud83d\udcca\ud83d\udce7\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": ".venv",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}